package com.rose.doorto.footbathdoor.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.rose.doorto.footbathdoor.pojo.QueueMessages;
import org.apache.ibatis.annotations.Mapper;

/**
 * @Author 李庆超
 * @email 1481791489@qq.com
 * @Package：com.rose.doorto.footbathdoor.mapper
 * @Project：door-to-door
 * @name：QueueMessagesMapper
 * @date 2024/09/03 2024/9/3:16:41:
 */
@Mapper
public interface QueueMessagesMapper extends BaseMapper<QueueMessages> {

    int addQueueMessage(QueueMessages queueMessages);

    /**
     * 修改消息状态
     * @param messageId
     * @param status
     * @return
     */
    int updateStatusByMessageId(String messageId,Integer status);

    /**
     * 更新重新重发次数
     * @param messageId
     * @return
     */
    int updateCountByMessageId(String messageId);


}
